﻿using Newtonsoft.Json;

namespace Douyu.Api.Entity
{
    public class Entity<T> : IEntity<T>
        where T : class
    {
        [JsonProperty(PropertyName = "error")]
        public int Error { get; set; }

        [JsonProperty(PropertyName = "data")]
        public T Data { get; set; }

        [JsonIgnore()]
        public virtual string Msg { get; set; }
    }

}
